#include "scene.h"
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsItem>
#include <QtCore/qmath.h>

Scene::Scene(QObject * parent):
QGraphicsScene(parent)
{
}

void Scene::wheelEvent(QGraphicsSceneWheelEvent *event)
{
    qreal steps = event->delta() / 120.0;
    event->accept();
    emit zoomed(qPow(2.0, -steps), event->scenePos());
}
